package cn.walls1717.wallsmall.auth.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import cn.walls1717.wallsmall.common.utils.R;

/**
 * 第三方服务Feign
 *
 * @author walls1717
 * @since 2022/11/11 18:50
 **/
@FeignClient("wallsmall-third-party")
public interface ThirdPartyFeignService {

    /**
     * 发送验证码
     *
     * @param phone 手机号
     * @param code 验证码
     * @return 结果
     */
    @GetMapping("/sms/code")
    R sendCode(@RequestParam("phone") String phone, @RequestParam("code") String code);

}
